%{if not $context->isUserLoggedIn()} 
	<div class="login_box">
		<p>%{trn key="user_login"}</p>
		<form action="%{url action="user/login}" method="post" name="loginForm" id="loginForm">
			<input class="login" style="" type="text" name="user[email]" id="loginForm_email"/>
			<input type="password" name="user[pass]" id="loginForm_password"/>
			<input type="submit" name="login" id="loginForm_submit" value="%{trn key="login"}"/>
		</form>
		<a href="%{url action="user/register"}">[%{trn key="register"}]</a>
	</div>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#loginForm").submit(function () {
				if ($.trim($("#loginForm_email").val()) == "") {
					alert("%{trn key="user_error_loging_no_email"}");
					return false;
				}
				if ($.trim($("#loginForm_password").val()) == "") {
					alert("%{trn key="user_error_loging_no_pass"}");
					return false;
				}
			});
			if ($("#loginForm_email").val() == "") {
				$("#loginForm_email").val("e-mail");
				$("#loginForm_password").val("qwerty");
			}
		});
	</script>
%{/if}